06. Exercise 2: Solution
Objective: Your task is to identify the main reinforcement learning components for the scenario defined above.
Agent: Who is the agent in this scenario? The Trading Bot
State Representation: What information needs to be included in the state for the agent to make informed decisions? Describe the components of the state.
- Current Close Price
- 20-day Moving Average of Close Price
- Trade Volume
Action Space: List the possible actions the agent can take in the environment
- Buy Stock
- Hold Stock
- Sell Stock
Reward: Define the rewards that will guide the agent’s behavior. Specify the rewards for each action.
- Buy Stock - zero
- Hold stock - zero
- Sell Stock - profit